<div id="tablePageDiv"></div>
<script>
	var laypage = layui.laypage;
	laypage.render({
		elem: 'tablePageDiv',
		count: ${page.count},
		curr: ${page.pageNo},
		limit: ${page.pageSize},
		layout: ['count', 'prev', 'page', 'next', 'limit', 'skip'],
		jump: function(obj, first) {
			if(!first) {
				var url = location.origin+location.pathname;
				location.href =url+'?page.pageNo='+ obj.curr+'&page.pageSize='+obj.limit+'&'+$('form').serialize();
			}
		}
	});
	
	$(function(){
		layui.table.init('main-table',{
			limit:${page.pageSize}
		});
	})
	
	layui.table.on('checkbox(main-table)', function(obj){
	  console.log(obj)
	});
	
	layui.table.checkStatus('main-table');
</script>